package com.jn.rxjava.service;

import com.jn.rxjava.gson.ApiService;
import com.jn.rxjava.model.NewsResponse;


import io.reactivex.rxjava3.core.Observable;

public class NewsRepository {
    private ApiService apiService;

    public NewsRepository() {

        this.apiService = RetrofitClient.getApiService();
    }

    public Observable<NewsResponse> getNewsInfo() {
        return apiService.getNewsInfo();
    }
}